package com.jason.reflect;

import com.jason.reflect.bean.Person;

/**
 * 反射的练习
 * @Author: Jason
 * @Date: 16/4/7
 * @Time: 22:28
 */
public class ReflectTest01 {

    /**
     * 反射: 加载类,获取类的字节码
     */
    public static void main(String[] args) throws ClassNotFoundException {


        // 1.
        Class clazz = Class.forName("com.jason.reflect.bean.Person");

        // 2.
        Class clazz1 = new Person().getClass();


        // 3.
        Class clazz2 = Person.class;




    }
}
